import {
    createRouter,
    createWebHashHistory,
    createWebHistory
} from 'vue-router';

const routes = [{
        path: '/',
        name: 'home',
        component: () => import('../views/home/index.vue')
    }, {
        path: '/answer',
        name: 'answer',
        component: () => import('../views/answer/index.vue')
    }, {
        path: '/video',
        name: 'video',
        component: () => import('../views/video/index.vue')
    },
    {
        path: '/person',
        name: 'person',
        component: () => import('../views/person/index.vue')
    }, {
        path: '/login',
        name: 'login',
        component: () => import("../views/login/index.vue"),
        meta: {
            notshow: true
        }
    }
]

const router = createRouter({
    // history: createWebHashHistory(), //hash模式
    history: createWebHistory(),
    routes
});

export default router;